﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLNS_Client
{
    public partial class frm_Them_TG : Form
    {
        ServiceReference1.Service_QLNSClient sv = new ServiceReference1.Service_QLNSClient();
        public frm_Them_TG()
        {
            InitializeComponent();
        }

        private void dr_ds_TG_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            txt_MaTG.Text = dr_ds_TG.CurrentRow.Cells[0].Value.ToString();
            txt_TenTG.Text = dr_ds_TG.CurrentRow.Cells[1].Value.ToString();
        }

        private void frm_Them_TG_Load(object sender, EventArgs e)
        {
            Load_Data_TG();
        }
        public void Load_Data_TG()
        {
            dr_ds_TG.DataSource = sv.getTG();
        }
    }
}
